package com.kuqi.mapper;

import com.kuqi.domain.PageVo;
import com.kuqi.domain.User;
import com.kuqi.domain.UserAvatar;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author:kuqi
 * @createTime:2021/11/9 20:09
 * @description:
 */
@Mapper
public interface UserMapper {
    void save(User user);

    Integer getUserTotal();

    List<User> getUserListByPage(PageVo pageVo);

    void update(User user);

    void deleteUserById(Integer id);

    User loginCheck(User user);

    void register(User user);

    User getUserById(Integer id);

    Integer getAvatarIdByUserId(Integer id);

    void setAvatarId(Map<Object, Object> map);
}
